package org.example.demoblg.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.demoblg.model.User;
@Mapper
public interface UserInfo {
    @Select("select * from user where id=#{id}")
     User getNameById(Integer id);
    @Select("select * from user where user_name=#{userName}")
     User getNameByName(String userName);
    @Insert("insert into user (user_name,password) values (#{userName},#{password})")
    Integer insert(User user);
}
